//
//  StatusViewController.h
//  MySpaceID.Demo
//
//  Created by Haider Sabri on Thursday10/15/09.
//  Copyright 2009 MySpace, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "OffsiteContext.h"
#import "RestV1.h"


@interface StatusViewController : UIViewController {
	OffsiteContext *context;
	RestV1 *api;
	bool urlReturn;
	NSInteger userId;
	NSArray *masterFriendList;
	NSArray *masterUserIds;
	NSArray *masterImageUrl;
	NSArray *masterUsername;
	IBOutlet UIImageView *friendImageView;
	IBOutlet UIImageView *profileImageView;
	IBOutlet UITextField *statusTextField;
	IBOutlet UITextView *statusTextView;
	IBOutlet UINavigationItem *loginButton;
	
}

@property bool urlReturn;
@property (nonatomic, retain) OffsiteContext* context;
@property (nonatomic, retain) RestV1* api;
@property (assign) NSInteger userId;
@property (assign) NSArray* masterFriendList;
@property (assign) NSArray* masterUserIds;
@property (assign) NSArray* masterImageUrl;
@property (nonatomic, retain) NSArray* masterUsername;
@property (nonatomic, retain) IBOutlet UIImageView *friendImageView;
@property (nonatomic, retain) IBOutlet UIImageView *profileImageView;
@property (nonatomic, retain) IBOutlet UITextField *statusTextField;
@property (nonatomic, retain) IBOutlet UITextView *statusTextView;
@property (nonatomic, retain) IBOutlet UINavigationItem *loginButton;

- (IBAction) updateAction: (id) sender;

- (void) parseUserData: (NSData*) data;
- (void) parseStatusData: (NSData*) data;
- (void) parseFriendsData: (NSData*) data;

@end
